# id/password长度不对
class MyError(Exception):
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __str__(self):
        return 'must between {} and {}'.format(self.x, self.y)


m = 6
n = 8

password = input('enter password:')
if m <= len(password) <= n:
    print('password is available')
else:
    # raise ValueError('password is wrong')
    raise MyError(m, n)
print('saved in database')
